package com.dx.mes.web.common.config;//package com.dx.mes.web.login.config;
//
//import com.mangofactory.swagger.configuration.SpringSwaggerConfig;
//import com.mangofactory.swagger.models.dto.ApiInfo;
//import com.mangofactory.swagger.plugin.EnableSwagger;
//import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.sql.Timestamp;
//
///**
// * swagger-ui的配置
// * @author ScienJus
// * @date 2015/7/10.
// */
//@Configuration
//@EnableSwagger
//public class SwaggerConfig {
//
//    private SpringSwaggerConfig springSwaggerConfig;
//
//    @Autowired
//    public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
//        this.springSwaggerConfig = springSwaggerConfig;
//    }
//
//    @Bean
//    public SwaggerSpringMvcPlugin customImplementation() {
//        return new SwaggerSpringMvcPlugin(this.springSwaggerConfig)
//                .apiInfo(new ApiInfo("Spring RESTful Authorization Demo Api",
//                        null, null, null, null, null)).
//                        //将Timestamp类型全部转为Long类型
//                        directModelSubstitute(Timestamp.class, Long.class);
//    }
//
//}
